<div ng-if="pagedata.sale_luck && pagedata.closedsales!=1" class="popup" id="sale_luck">
	<div class="popup-body">
    <div class="popup-center" style="width:80%;height:auto;">
		<div style="background:url({{tomedia(pagedata.sale_luck.setbg) || '../addons/jy_weishop/resource/images/sales/luck_bg.png'}}) no-repeat center ;background-size:8rem 8rem;text-align:center;">
			<div ng-if="!pagedata.sale_luck.isjie" class="fui-page-title" style="font-size:1rem;margin-top:0.6rem;color:red">{{pagedata.sale_luck.settitle||'今日运势'}}</div>
			<div ng-if="pagedata.sale_luck.isjie==1" class="fui-page-title" style="font-size:1rem;margin-top:0.6rem;color:red">成功借势</div>
			<div ng-if="pagedata.sale_luck.isjie==2" class="fui-page-title" style="font-size:1rem;margin-top:0.6rem;color:red">无需借势</div>
			<div ng-if="!pagedata.sale_luck.isjie" class="fui-page-subtitle" style="width:auto;font-size:0.65rem;padding:0 0.5rem;margin-top:0;text-align:center;color:#333">{{pagedata.sale_luck.setdesc||'恭喜您！成功获得好运气，享受购物好折扣！'}}</div>
			<div ng-if="pagedata.sale_luck.isjie" class="fui-page-subtitle" style="width:auto;font-size:0.65rem;padding:0 0.5rem;margin-top:0;text-align:center;color:#333">{{pagedata.sale_luck.setdesc}}</div>
			<div class="fui-page-title" style="font-size:1rem;margin-top:2rem;color:#fa2603">{{pagedata.sale_luck.title}}</div>
			<div class="fui-page-title" style="font-size:0.65rem;margin-top:-0.2rem;color:#fa2603">享受‘{{pagedata.sale_luck.discount}}’折</div>
			<div class='btn btn-red' href="javascript:;" ng-click="access_json('jy_weishop/member.luck/')" style="height:1.4rem;line-height:1.4rem;border-radius:1rem;background-color:red;padding:0 0.5rem;margin-top:2.5rem;margin-bottom:1rem;color:#fff">查看运势</div>
			<i class="closed icon icon-cuowu"  style="top:105%" ng-click="pagedata.closedsales=1"></i>
		</div>
	</div>
	</div>
</div>
<div ng-if="pagedata.sale_offer && pagedata.closedsales!=1" id="unpaid" >
    <div class="unpaid-alert">
        <div class="unpaid-title red">{{pagedata.sale_offer.title || '今日特价商品'}}</div>
        <div class="unpaid-subtitle">{{pagedata.sale_offer.desc || '今日特价，一周机会只有一次哦！一人只能购买一份哦！'}}</div>
        <div class="unpaid-content fui-list-group" style="height:11rem;overflow-y:scroll">
                <div ng-repeat="item in pagedata.sale_offer.list" class="fui-list">			
                    <div class="fui-list-media image-media">
                        <a>
                            <img class="" ng-src="{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}">
                        </a>
                    </div>
                    <div class="fui-list-inner">
                        <a>
                            <div class="subtitle">
                                {{item.title}}
                            </div>
                        </a>
                        <div class="price">
                            <span class="bigprice text-danger">特价￥<span class="marketprice">{{item.price}}</span> </span><span ng-if="item.oldprice" class="delete" style="font-size:.6rem">原价：{{item.oldprice}}</span>
                        </div>
                    </div>
					<div ng-if="!item.canbuy" class="nototal"></div>
                </div>
                <div ng-if="pagedata.sale_offer.list.length>3" class="fui-list">
                    等多个特价商品
                </div>
				<div ng-if="!pagedata.sale_offer.list || pagedata.sale_offer.list.length<1"  class='content-empty' style='margin-top:2rem'>
					<i class='icon icon-information'></i></br>暂时没有任何特价商品
				</div>
        </div>
        <a id="btn-pay" ng-click="post({},'jy_weishop/member.cart/offeradd/');" class=" btn btn-danger disable block">一键加入购物车</a>
        <i class="icon icon-cuowu" ng-click="pagedata.closedsales=1" style="font-size:1.5rem;color:#fff;position: absolute;top:100%;left:46%"></i>
    </div>
</div>
<div ng-if="pagedata.sale_new && pagedata.closedsales!=1" id="unpaid" >
    <div class="unpaid-alert">
        <div class="unpaid-title red">{{pagedata.sale_new.title || '新人专享商品'}}</div>
        <div class="unpaid-subtitle">{{pagedata.sale_new.desc || '新人专享,限时购买！一人只能购买一份新人专享商品哦！'}}</div>
        <div class="unpaid-content fui-list-group" style="height:11rem;overflow-y:scroll">
                <div ng-repeat="item in pagedata.sale_new.list" class="fui-list">			
                    <div class="fui-list-media image-media">
                          <img class="" ng-src="{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}">
                    </div>
                    <div class="fui-list-inner">
                        <div class="subtitle">
                                {{item.title}}
                        </div>
                        <div class="price">
                            <span class="bigprice text-danger">特价￥<span class="marketprice">{{item.price}}</span> </span><span class="delete" style="font-size:.6rem">原价：{{item.oldprice}}</span>
                        </div>
                    </div>
					<div ng-if="!item.canbuy" class="nototal"></div>
                </div>
                <div ng-if="pagedata.sale_new.list.length>3" class="fui-list">
                    等多个新人专享商品
                </div>
				<div ng-if="!pagedata.sale_new.list || pagedata.sale_new.list.length<1"  class='content-empty' style='margin-top:2rem'>
					<i class='icon icon-information'></i></br>暂时没有任何新人专享商品
				</div>
        </div>
        <a id="btn-pay" ng-click="access_json('jy_weishop/activity//order=sale_new');" class=" btn btn-danger disable block">前往购买</a>
        <i class="icon icon-cuowu" ng-click="pagedata.closedsales=1" style="font-size:1.5rem;color:#fff;position: absolute;top:100%;left:46%"></i>
    </div>
</div>
<div ng-if="pagedata.sale_libao && pagedata.closedsales!=1" id="unpaid" >
    <div class="unpaid-alert">
        <div class="unpaid-title red">{{pagedata.sale_libao.title || '新人特价礼包'}}</div>
        <div class="unpaid-subtitle">{{pagedata.sale_libao.desc || '新人专享,限时购买！一人只能购买一份新人特价礼包哦！'}}</div>
        <div class="unpaid-content fui-list-group">
                <div ng-repeat="item in pagedata.sale_libao.list" ng-if="$index<3" class="fui-list">			
                    <div class="fui-list-media image-media">
                        <a>
                            <img class="" ng-src="{{tomedia(item.logo) ||'../core/resource/images/nopic.jpg'}}">
                        </a>
                    </div>
                    <div class="fui-list-inner">
                        <a>
                            <div class="subtitle">
                                {{item.title}}
                            </div>
                        </a>
                        <div class="price">
                            <span class="bigprice text-danger">特价￥<span class="marketprice">{{item.price}}</span> </span><span class="delete" style="font-size:.6rem">原价：{{item.oldprice}}</span>
                        </div>
                    </div>
					<div ng-if="!item.canbuy" class="nototal"></div>
                </div>
                <div ng-if="pagedata.sale_libao.list.length>3" class="fui-list">
                    等多个特价礼包
                </div>
				<div ng-if="!pagedata.sale_libao.list || pagedata.sale_libao.list.length<1"  class='content-empty' style='margin-top:2rem'>
					<i class='icon icon-information'></i></br>暂时没有任何特价礼包
				</div>
        </div>
        <a id="btn-pay" ng-click="access_json('jy_giftbao/index/');" class=" btn btn-danger disable block">查看更多礼包</a>
        <i class="icon icon-cuowu" ng-click="pagedata.closedsales=1" style="font-size:1.5rem;color:#fff;position: absolute;top:100%;left:46%"></i>
    </div>
</div>
<div ng-include="sys_html('sale/_bindmobile_credit','','','jy_weishop')"></div>
<div ng-if="pagedata.sale_tan" class="popup" id="sale_tan">
    <div class="popup-body">
        <div class="popup-center" style="width:80%;height:auto;">
            <i class="icon icon-cuowu" ng-click="pagedata.sale_tan=false;pagedata.closedsales=1" style="font-size:1.5rem;color:#fff;position: absolute;top:100%;left:46%"></i>
            <div style="position:relative;">
                <img style="width: 100%" href="javascript:;" ng-click="access_json(pagedata.sale_tan.url)" ng-src="{{tomedia(pagedata.sale_tan.image) || '../core/resource/images/diy/ad/wxhdp02.jpg'}}"/>
                <a ng-repeat="item in pagedata.sale_tan.links" href="javascript:;" ng-click="access_json(item.url)" style="display:block;position:absolute;height:{{item.height}}%;width:{{item.width}}%;top:{{item.top}}%;left:{{item.left}}%;"></a>
            </div>
        </div>
    </div>
</div>